import request from "@/utils/request";
export function insertFunction(data) {
  return request({
    url: "/function/insert",
    method: "post",
    data: data
  });
}
export function updateFunction(data) {
  return request({
    url: "/function/update",
    method: "post",
    data: data
  });
}
export function deleteFunction(data) {
  return request({
    url: "/function/delete",
    method: "post",
    data: data
  });
}
export function deletesFunction(data) {
  return request({
    url: "/function/deletes",
    method: "post",
    data: data
  });
}
export function enableFunction(data) {
  return request({
    url: "/function/enable",
    method: "post",
    data: data
  });
}
export function enablesFunction(data) {
  return request({
    url: "/function/enables",
    method: "post",
    data: data
  });
}
export function disableFunction(data) {
  return request({
    url: "/function/disable",
    method: "post",
    data: data
  });
}
export function disablesFunction(data) {
  return request({
    url: "/function/disables",
    method: "post",
    data: data
  });
}
export function viewFunction(params) {
  return request({
    url: "/function/view",
    method: "get",
    params: params
  });
}
export function pageFunction(params) {
  return request({
    url: "/function/page",
    method: "get",
    params: params
  });
}
export function searchFunction(params) {
  return request({
    url: "/function/search",
    method: "get",
    params: params
  });
}
